package com.manor.paradise.adapter

import android.view.ViewGroup
import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.manor.paradise.R
import com.manor.paradise.bean.NobleBean


class TimeAdapter  (layoutResId: Int, data: MutableList<NobleBean.NobleListBean.LevelPriceBean>?) : BaseQuickAdapter<NobleBean.NobleListBean.LevelPriceBean, BaseViewHolder>
(layoutResId, data) {

    override fun convert(helper: BaseViewHolder, item: NobleBean.NobleListBean.LevelPriceBean) {
        //     ScreenAdapter.match(context, 667f)
        item.run {
           val tv_name = helper.getView<TextView>(R.id.tv_names)
            tv_name.setText(name)




        }

    }

    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): BaseViewHolder {
        return super.onCreateViewHolder(parent, viewType)

    }

}